﻿package Message.Game
{
    import Framework.Serialize.*;

    public class SGuildWarehouseRecord extends Object
    {
        public var endName:String;
        public var startName:String;
        public var itemCode:int;
        public var unit:int;
        public var amount:int;
        public var oper:EGuildWarehouseOper;
        public var operDt:Date;

        public function SGuildWarehouseRecord()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeString(this.endName);
            param1.writeString(this.startName);
            param1.writeInt(this.itemCode);
            param1.writeInt(this.unit);
            param1.writeInt(this.amount);
            this.oper.__write(param1);
            param1.writeDate(this.operDt);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.endName = param1.readString();
            this.startName = param1.readString();
            this.itemCode = param1.readInt();
            this.unit = param1.readInt();
            this.amount = param1.readInt();
            this.oper = EGuildWarehouseOper.__read(param1);
            this.operDt = param1.readDate();
            return;
        }// end function

    }
}
